﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Reconciliation.Data
{
    public partial class Location
    {
        public static Domain.Location MapDataToDomain(Data.Location dataLocation)
        {
            Domain.Location domainLocation = new Reconciliation.Domain.Location();
            domainLocation.Country = dataLocation.Country ;
            domainLocation.Latitude = dataLocation.Latitude ;
            domainLocation.Locality = dataLocation.Locality ;
            domainLocation.LocationID = dataLocation.LocationID ;
            domainLocation.LocationType = dataLocation.LocationType ;
            domainLocation.Longitude = dataLocation.Longitude ;
            domainLocation.Postcode = dataLocation.Postcode ;
            domainLocation.Region = dataLocation.Region ;
            domainLocation.RegionType = dataLocation.RegionType  ;
            domainLocation.State = State.MapDataToDomain(dataLocation.State);
            domainLocation.StreetName = dataLocation.StreetName ;
            domainLocation.StreetNumber = dataLocation.StreetNumber ;
            domainLocation.Suburb = dataLocation.Suburb ;
            return domainLocation;
        }
    }
}
